Repository navigation
feat(deploy): register laptop-agent in the services layer (#5769 M2) - #11168
Conversation
One services-layer definition for laptop-agent in pkgs/deploy/services.nix (package pkgs/laptop-agent, reconciled in #10131), wired through pkgs/deploy/default.nix. restart=always per the 2026-11-16 daemon-death lesson (#2879); healthCheck=null because /health is token-gated (401) and the deploy probe cannot present a token - health is verified via the authenticated client after activation. Also bring the queue-broker definition in line with the live unit: QUEUE_BROKER_BACKEND=turso (#6741) and the Turso token named in secrets.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
M2 remainder (#5769): laptop-agent services-layer definition
Queue task 16852, lane code-b. Prerequisite #10131 closed today (PR #11015): the reconciled daemon source lives at
pkgs/laptop-agent/src/laptop_agent.pywithpkgs/laptop-agent/package.nix. This PR gives that package its one services-layer definition in the deploy registry, so all three fleet daemons (queue-broker, secrets-broker, laptop-agent) are now declared inpkgs/deploy/services.nix.Changes
pkgs/deploy/services.nix: newlaptop-agentdefinition — packagelaptopAgent, entryPointbin/laptop-agent,LAPTOP_AGENT_HOST/LAPTOP_AGENT_PORTenvironment mirroring the hand-written unit it replaces, port 4799,restart = "always"(the 2026-11-16 daemon-death lesson, code#2879:on-failuredoes not restart a clean exit), targets[ "laptop" ], classsystemd.healthCheck = null, deliberately:/healthrequires the daemon token (401 without it) and the deploy probe cannot present one. Same shape assession-proxy/mcpx; health is verified through the authenticated client (laptop-agent.py health) after activation. Recorded in a comment on the definition.secrets = [ ]: the daemon token is a local file it reads itself at startup.pkgs/deploy/default.nix: passlaptopAgent = callPackage ../laptop-agent/package.nix { }into the registry import.pkgs/deploy/services.nix(queue-broker): definition brought in line with the live unit —QUEUE_BROKER_BACKEND = "turso"environment (live since the Turso replacement for the queue core: dedicated muse-queue DB + fleet queue-broker Turso backend #6741 Turso cutover, carried today by the30-turso-queue.confdrop-in) and the Turso token named insecretsalongside the legacy Supabase key. Without this, a registry activation would not describe the service that actually runs.Verification
pkgs/deploy/test_*.pysuites pass againstdeploy.py(argv, slice2, slice3, dupkeys/target-shape properties).pkgs/laptop-agentunittest suite: 65/65 pass.nix build .#deploy+deploy list/ dry-run plans: see PR checks and the evidence note on Migration M2: one declaration for the fleet three (laptop-agent, secrets-broker, queue-broker) #5769.Cutover (deploy activation per daemon, brokers first, laptop-agent last), superseded-unit archival, the darwin-nix
fleet-brokersmodule disposition, and the #5343 close note proceed under task 16852 with evidence on #5769.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.